package com.demo;

import reactor.netty.http.client.HttpClient;

/**域名解析
 * @author Ziroom
 *
 */
public class ResolverTest2 {

	public static void main(String[] args) {
		HttpClient client = HttpClient.create(); // 域名解析
		String response = client
				.get()
				.uri("http://api.map.baidu.com/geocoder/v2/?ak=jA33G4DHGqxAT4pdIqyg30B4&output=json&location=31.30156043147463,121.1564302490618")
				.responseContent()
				.aggregate()
				.asString()
				.block();
		System.out.println("Response " + response);
	}

}
